namespace DesignPattern.Behavioral.Strategy
{
    public class StrategyContext
    {
        private IStrategy _strategy;

        public void SetStrategy(IStrategy strategy)
        {
            _strategy = strategy;
        }

        public IStrategy GetStrategy()
        {
            return _strategy;
        }

        public void StrategyMethod()
        {
            _strategy.Method();
        }
    }
}